<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ page import="cn.firstsoft.firstframe.admin.*" %>
<%
	String j_username = request.getParameter("j_username");
	String j_password = request.getParameter("j_password");
	String username = PropertyFile.readValue("user.properties", "username");
	if (username == null) username = "QWERT";
	String password = PropertyFile.readValue("user.properties", "password");
	if (password == null) password = "ZXCVB";
	if (username.equals(j_username) && password.equals(j_password)) {
		request.getSession().setAttribute("OA_MANAGER", "true");
		response.sendRedirect("index.jsp");
		return;
	} else {
		request.getSession().setAttribute("OA_MANAGER", "用户名和密码不匹配，请重新登录！");
		response.sendRedirect("login.jsp");
		return;		
	}
%>